Platform Explorer / Nuxeo Platform 2021.52

Contribution org.nuxeo.ecm.platform.convert.commandline.pdf2text--command

This contribution is part of XML component org.nuxeo.ecm.platform.convert.commandline.pdf2text inside nuxeo-core-convert-plugins-2021.52.8.jar /OSGI-INF/commandline-pdf2text-contrib.xml

Extension Point

Extension point command of component CommandLineExecutorComponent.

Registration Order

2
The registration order represents the order in which this contribution was registered on its target extention point. This will impact the override/merge behaviour when it is implemented on the target service, and is useful for proper customization of existing contributions.
You can influence this order by adding "require" tags in the containing component declaration, to make sure it is resolved after another component (see "Resolution Order" on components).

Contributed Items

  • <command enabled="true" name="pdftotext">
          <commandLine>pdftotext</commandLine>
          <parameterString>-enc UTF-8 #{sourceFilePath} #{targetFilePath}</parameterString>
          <winParameterString>-enc UTF-8 #{sourceFilePath} #{targetFilePath}</winParameterString>
          <installationDirective>You need to install pdftotext.</installationDirective>
        </command>
  • <command enabled="true" name="ps2pdf">
          <commandLine>gs</commandLine>
          <winCommand>gswin64c</winCommand>
          <parameterString>-dNOPAUSE -dBATCH -sDEVICE=pdfwrite -dEPSFitPage -sOutputFile=#{targetFilePath}
            #{sourceFilePath}</parameterString>
          <testParameterString>-dNODISPLAY</testParameterString>
          <installationDirective>You need to install GhostScript.</installationDirective>
        </command>

XML Source

<extension point="command" target="org.nuxeo.ecm.platform.commandline.executor.service.CommandLineExecutorComponent">

    <command enabled="true" name="pdftotext">
      <commandLine>pdftotext</commandLine>
      <parameterString>-enc UTF-8 #{sourceFilePath} #{targetFilePath}</parameterString>
      <winParameterString>-enc UTF-8 #{sourceFilePath} #{targetFilePath}</winParameterString>
      <installationDirective>You need to install pdftotext.</installationDirective>
    </command>

    <command enabled="true" name="ps2pdf">
      <commandLine>gs</commandLine>
      <winCommand>gswin64c</winCommand>
      <parameterString>-dNOPAUSE -dBATCH -sDEVICE=pdfwrite -dEPSFitPage -sOutputFile=#{targetFilePath}
        #{sourceFilePath}</parameterString>
      <testParameterString>-dNODISPLAY</testParameterString>
      <installationDirective>You need to install GhostScript.</installationDirective>
    </command>

  </extension>